package cn.shop.cloud.service;

import cn.shop.cloud.domain.OrderInfo;

/**
 * @program: shop-parent
 * @ClassName IOrderInfoService
 * @description:
 * @author: Mokio
 * @create: 2024−12-24 21:09
 * @Version 2024 2.2 ; jdk1.8.0_181
 **/

public interface IOrderInfoService {

    /**
     * 返回一个订单编号
     * @param id
     * @param seckillId
     * @return
     */
    public  String doSeckill(Long id, Long seckillId);

    /**
     * 万一远程调用呢 ？
     *  根据订单编号查询订单信息
     * @param orderNo
     * @return
     */
    public OrderInfo find(String orderNo);

    public void cancelOrder(Long seckillId, String orderNo);
}


